'use strict';

/**
 * @param {Egg.Application} app - egg application
 * @description 也可以用 egg-router-plus 来定义namespace
 */
module.exports = app => {

    const {
        controller,
        middleware,
        router
    } = app;

    const {
        post
    } = controller.api;

    //   const tokenRequired = middleware.tokenRequired();
    //   const pagination = middleware.pagination();

    router.get("/api/v1/posts",post.index)

};